{% extends 'oracle/base.html' %}
{% load oracle %}

{% block content %}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            {% for top_icon in data.top_icons %}
                <div class="col-lg-12">
                    <div class="ibox ">
                        <div class="ibox-title">
                            <h5>{{ top_icon.title }}</h5>
                            <div class="ibox-tools">
                            </div>
                        </div>
                        <div class="ibox-content">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th>Icon</th>
                                    <th>Name</th>
                                    <th>Icon</th>
                                    <th>Name</th>
                                    <th>Icon</th>
                                    <th>Name</th>
                                    <th>Icon</th>
                                    <th>Name</th>
                                </tr>
                                </thead>
                                <tbody>
                                {% for item in top_icon.children %}
                                    {% icon_table 4 forloop.counter as flag %}
                                    {% if flag == 1 %}
                                        <tr>
                                    {% endif %}
                                <td><i class="fa {{ item.icon_class }}"></i></td>
                                <td>{{ item.title }}</td>
                                {% if flag == 0 %}
                                    </tr>
                                {% endif %}
                                {% endfor %}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            {% endfor %}
        </div>
    </div>
{% endblock %}